SRC = ${wildcard *.c}
OBJ = ${patsubst %.c, %.o, $(SRC)}

CFLAGS = -c -Wall -fPIC
LIBFLAGS = -shared -fPIC

<<<<<<< HEAD
#CROSS = arm-none-linux-gnueabi-
=======
CROSS = arm-none-linux-gnueabi-
>>>>>>> 28d8964084b6eace77787ca32bfb7eb99401676b
CC = $(CROSS)gcc

all:install $(OBJ)

$(OBJ):%.o:%.c
	$(CC) $(CFLAGS) -o $@ $^

install:$(OBJ)
	$(CC) $(LIBFLAGS) -o libvnet.so $(OBJ)

clean:
	$(RM) $(OBJ) libvnet.so .*.sw?

.PHONY:all clean
